# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=greetd-mini-wl-greeter
pkgver=0_git20230821
_commit=4caf09d20a9038d2a83349ad0f3e97cfa28ae979
pkgrel=0
pkgdesc="Extremely minimal raw Wayland greeter for greetd"
url="https://github.com/philj56/greetd-mini-wl-greeter"
arch="all"
license="MIT"
makedepends="
	cairo-dev
	json-c-dev
	libepoxy-dev
	libxkbcommon-dev
	meson
	musl-fts-dev
	pango-dev
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	"
source="https://github.com/philj56/greetd-mini-wl-greeter/archive/$_commit.tar.gz"
options="!check"  # no tests provided
builddir="$srcdir/greetd-mini-wl-greeter-$_commit/"

build() {
	LDFLAGS="$LDFLAGS -lfts" abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a91eda7848d11c184b31967d2ac1b1bacf5fb728bf7e01bcc327ff822107272a379f13f278bc518714bea1ad2600aeb6002c5212c7593463e127725b7f92a907  4caf09d20a9038d2a83349ad0f3e97cfa28ae979.tar.gz
"
